//
//  MainViewController.swift
//  SW-weibo
//
//  Created by 黄淇鸿 on 16/1/10.
//  Copyright © 2016年 qhhuang. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {

    override func viewDidLoad() {
        //添加子控制器
//        addChildViewController(HomeViewController(),title: "首页",imageName: "tabbar_home")
//        addChildViewController(MessageViewController(), title: "消息", imageName: "tabbar_message_center")
//        addChildViewController(DiscoverViewController(), title: "发现", imageName: "tabbar_discover")
//        addChildViewController(ProfileViewController(), title: "我", imageName: "tabbar_profile")
        
        
        
    }
    
    
    //
//    func addChildViewController(childVC: UIViewController, title: String, imageName: String) {
//        
//        
//        //包装导航控制器
//        let homeNav = UINavigationController(rootViewController: childVC)
//        
//        addChildViewController(homeNav)
//        
//        childVC.title = title
//        childVC.tabBarItem.image = UIImage(named: imageName)
//        childVC.tabBarItem.selectedImage = UIImage(named: imageName + "_highlighted")
//    }
    
}
